//全选
function checkAll(name) {
	var names = document.getElementsByName(name);
	var len = names.length;
	if (len > 0) {
		var i = 0;
		for (i = 0; i < len; i++)
			names[i].checked = true;
	}
}

// 全不选
function checkAllNo(name) {
	var names = document.getElementsByName(name);
	var len = names.length;
	if (len > 0) {
		var i = 0;
		for (i = 0; i < len; i++)
			names[i].checked = false;
	}
}

// 反选
function reserveCheck(name) {
	var names = document.getElementsByName(name);
	var len = names.length;
	if (len > 0) {
		var i = 0;
		for (i = 0; i < len; i++) {
			if (names[i].checked)
				names[i].checked = false;
			else
				names[i].checked = true;
		}
	}
}

function XXX() {
	document.checkIds.submit();
}
